package behavior.observer.self;

import lombok.AllArgsConstructor;

/**
 * 赤壁之战
 */
@AllArgsConstructor
public class ChibiWar implements WarfareObserver{

    private String name;


    @Override
    public String getName() {
        return name;
    }


    @Override
    public void update(Object arg) {
        System.out.println(name + "收到消息：" + arg);

    }
}
